package com.fzdy.product.service.impl;

import com.fzdy.product.dao.UserDao;
import com.fzdy.product.entity.User;
import com.fzdy.product.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.transaction.Transactional;

@Transactional
@Service
public class UserServiceimpl implements UserService {

    @Autowired
    private UserDao userDao;

    @Override
    public User login(String name, String password) {
        return userDao.getByNameAndPassword(name, password);
    }
}
